Trivial formatting fix
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Mar 2016 23:30:14 +0000 (18:30 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Mar 2016 02:42:33 +0000 (21:42 -0500)
gdk/gdk.c
gdk/gdkwindow.c

index 25e6287b285670424ad71bc52a96036b55d3e8c0..c9c353669e49b9f06cb1c7af2987fbefaa86bb3e 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -138,31 +138,31 @@ static GCallback gdk_threads_lock = NULL;
 static GCallback gdk_threads_unlock = NULL;
 
 static const GDebugKey gdk_gl_keys[] = {
-  {"disable",               GDK_GL_DISABLE},
-  {"always",                GDK_GL_ALWAYS},
-  {"software-draw",         GDK_GL_SOFTWARE_DRAW_GL | GDK_GL_SOFTWARE_DRAW_SURFACE},
-  {"software-draw-gl",      GDK_GL_SOFTWARE_DRAW_GL},
-  {"software-draw-surface", GDK_GL_SOFTWARE_DRAW_SURFACE},
-  {"texture-rectangle",     GDK_GL_TEXTURE_RECTANGLE},
-  {"legacy",                GDK_GL_LEGACY},
+  { "disable",               GDK_GL_DISABLE },
+  { "always",                GDK_GL_ALWAYS },
+  { "software-draw",         GDK_GL_SOFTWARE_DRAW_GL | GDK_GL_SOFTWARE_DRAW_SURFACE} ,
+  { "software-draw-gl",      GDK_GL_SOFTWARE_DRAW_GL },
+  { "software-draw-surface", GDK_GL_SOFTWARE_DRAW_SURFACE },
+  { "texture-rectangle",     GDK_GL_TEXTURE_RECTANGLE },
+  { "legacy",                GDK_GL_LEGACY }
 };
 
 #ifdef G_ENABLE_DEBUG
 static const GDebugKey gdk_debug_keys[] = {
-  {"events",        GDK_DEBUG_EVENTS},
-  {"misc",          GDK_DEBUG_MISC},
-  {"dnd",           GDK_DEBUG_DND},
-  {"xim",           GDK_DEBUG_XIM},
-  {"nograbs",       GDK_DEBUG_NOGRABS},
-  {"input",         GDK_DEBUG_INPUT},
-  {"cursor",        GDK_DEBUG_CURSOR},
-  {"multihead",     GDK_DEBUG_MULTIHEAD},
-  {"xinerama",      GDK_DEBUG_XINERAMA},
-  {"draw",          GDK_DEBUG_DRAW},
-  {"eventloop",     GDK_DEBUG_EVENTLOOP},
-  {"frames",        GDK_DEBUG_FRAMES},
-  {"settings",      GDK_DEBUG_SETTINGS},
-  {"opengl",        GDK_DEBUG_OPENGL},
+  { "events",        GDK_DEBUG_EVENTS },
+  { "misc",          GDK_DEBUG_MISC },
+  { "dnd",           GDK_DEBUG_DND },
+  { "xim",           GDK_DEBUG_XIM },
+  { "nograbs",       GDK_DEBUG_NOGRABS },
+  { "input",         GDK_DEBUG_INPUT },
+  { "cursor",        GDK_DEBUG_CURSOR },
+  { "multihead",     GDK_DEBUG_MULTIHEAD },
+  { "xinerama",      GDK_DEBUG_XINERAMA },
+  { "draw",          GDK_DEBUG_DRAW },
+  { "eventloop",     GDK_DEBUG_EVENTLOOP },
+  { "frames",        GDK_DEBUG_FRAMES },
+  { "settings",      GDK_DEBUG_SETTINGS },
+  { "opengl",        GDK_DEBUG_OPENGL }
 };
 
 static gboolean
index 8236f38223759965c94e175249b99dfad5431c14..60ed2ee5864a09096bc7eab01b7fd23863b636ea 100644 (file)
@@ -3703,9 +3703,10 @@ gdk_window_process_updates_internal (GdkWindow *window)
          expose_region = cairo_region_copy (window->active_update_area);
 
           /* Sometimes we can't just paint only the new area, as the windowing system
-             requires more to be repainted. For instance, with opengl you typically
-             repaint all of each frame each time and then swap the buffer, although
-             there are extensions that allow us to reuse part of an old frame */
+           * requires more to be repainted. For instance, with OpenGL you typically
+           * repaint all of each frame each time and then swap the buffer, although
+           * there are extensions that allow us to reuse part of an old frame.
+           */
           if (GDK_WINDOW_IMPL_GET_CLASS (window->impl)->invalidate_for_new_frame)
             GDK_WINDOW_IMPL_GET_CLASS (window->impl)->invalidate_for_new_frame (window, expose_region);